
public class text10_28 {
    public static void main(String[] args) {
        int n=9;
        int tmp=0;
        int ret=0;
        int i=0;
        while(n!=0){
            tmp=n%2;
            n/=2;
            ret+=tmp*Math.pow(10,i);
            i++;
        }
        System.out.println(ret);
    }
}
